<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->headTitle() . PHP_EOL; ?>
        <?php echo $this->headLink() . PHP_EOL; ?>
        <?php echo $this->headScript() . PHP_EOL; ?>
        <link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/css/base.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/css/skin-blue.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/css/application.css" type="text/css" media="screen" />
        <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="/css/application-ie.css" />
        <![endif]-->

        <link href="/css/jquery.dataTables.css" rel="stylesheet" />
        <link href="/css/bootstrap.css" rel="stylesheet" />
        <link href="/css/datepicker.css" rel="stylesheet">
        <link href="/css/bootstrap-fileupload.css" rel="stylesheet">

        <script src="/js/jquery.js"></script>
        <script src="/js/jquery.dataTables.min.js"></script>
        <script src="/js/bootstrap.js"></script>
        <script src="/js/bootstrap-datepicker.js"></script>
        <script src="/js/bootstrap-fileupload.js"></script>
        <script src="/js/confirmModal.js"></script>
        <script src="/js/application.js"></script>

        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body id="<?php echo Zend_Controller_Front::getInstance()->getRequest()->getControllerName(); ?>">
        <div id="contentWrapper">
            <div id="header">
                TODO: LOGO <!-- <img src="/images/logos/logo.png" alt="Ets Leclercq"/> -->
                <h1><a href="/">ets <b>Leclercq Alain</b></a></h1>
                <?php
                if ($this->subtitle) {
                    echo '<span class="subtitle">' . $this->subtitle . '</span>';
                }
                ?>
            </div>

            <ul id="navigation">
                <?php if (!$this->noMenu) { ?>
                    <?php echo $this->menuLi('Accueil', '/', array('/', 'index'), array(), 'first') ?>
                    <?php echo $this->menuLi('Nos promotions', '/discount', array('discount')) ?>
                    <?php echo $this->menuLi("Contact", '/contact', array('contact')) ?>
                    <?php
                    if (Application::isUserAuthenticated()) {
                        echo $this->menuLi('Gestion promotions', '/admin-discount', array('admin-discount'));
                        echo $this->menuLi('Gestion magasin', '/admin-store', array('admin-store'));
                        echo $this->menuLi($this->translate('Logout'), '/session/destroy', array('session'), array(), 'right last' . ($this->translationEnabled == 1 ? '' : ' first'));
                    } else {
                        echo $this->menuLi($this->translate('Login'), '/session/new', array('session'), array(), 'right' . ($this->translationEnabled == 1 ? '' : ' first'));
                    }
                    if ($this->translationEnabled == 1) {
                        echo $this->LanguageMenu('right', 'first');
                    }
                }
                ?>
            </ul>
            <div class="clear"></div>

            <div id="content">
                <?php echo $this->layout()->content ?>
            </div>

            <div id="footer">
                Web development by Julien Leclercq
                <?php
                if (APPLICATION_ENV != 'production') {
                    echo sprintf("&mdash; %.f secs to generate this page on <strong>%s</strong> environment.", microtime(true) - APP_TIME_START, APPLICATION_ENV);
                }
                ?>
            </div>
        </div>
    </body>
</html>
